﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddNew.aspx.cs" Inherits="sysadmin_NewManager_AddNew"
    ValidateRequest="false" %>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.QuickStart" Assembly="Telerik.QuickStart" %>
<%@ Register TagPrefix="radU" Namespace="Telerik.WebControls" Assembly="RadUpload.Net2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>创建新闻类别</title>
    <link href="../../css/1/css/css.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" language="javascript">
    function openUploadFile(CourseID)
    {
      var StrCourseName=document.form1.txt_CourseName.value;
      window.location="uploadFile.aspx?StrCourseName="+StrCourseName+"&CourseID=0" ;
    }
    </script>

    <script type="text/javascript" language="javascript">
        function ShowNo()                        //隐藏两个层
        {
            document.getElementById("doing").style.display="none";
            document.getElementById("divLogin").style.display="none";
        }
        function $(id)         
        {
            return (document.getElementById) ? document.getElementById(id) : document.all[id] ;
        }
        function showFloat()                    //根据屏幕的大小显示两个层
        {
      var range = getRange();
            $('doing').style.width = range.width + "px";
            $('doing').style.height = range.height + "px";
            $('doing').style.display = "block";
            document.getElementById("divLogin").style.display="";
        }
        function getRange()                      //得到屏幕的大小
        {
              var top     = document.body.scrollTop;
              var left    = document.body.scrollLeft;
              var height  = document.body.clientHeight;
              var width   = document.body.clientWidth;

              if (top==0 && left==0 && height==0 && width==0) 
              {
                top     = document.documentElement.scrollTop;
                left    = document.documentElement.scrollLeft;
                height  = document.documentElement.clientHeight;
                width   = document.documentElement.clientWidth;
              }
              return  {top:top  ,left:left ,height:height ,width:width } ;
        } 
        function AutoColseAler()
        {
            //showFloat();
            //setTimeout("ShowNo()",3000);
        }

    </script>
</head>
<body class="bodymain">
    <form id="form1" runat="server">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tree-titbg_right">
            <tr>
                <td class="tree-titbg_left">
                    <asp:Label ID="lbl_InfoTitle_AddNew" runat="server" Text=""></asp:Label>
                </td>
            </tr>
        </table>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2"  style="border-bottom-style:none;">
            <tr>
                <td colspan="4" class=" titlefont">
                    <asp:Label ID="lbl_NewBaseInfo" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lbl_NewTitle" runat="server" Text=""></asp:Label>
                </th>
                <td colspan="3">
                    <asp:TextBox ID="txt_NewTitle" runat="server" MaxLength="64" Width="360px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_txt_NewTitle" runat="server" ErrorMessage="*"
                        ControlToValidate="txt_NewTitle"></asp:RequiredFieldValidator>
                    <asp:Label ID="lbl_AddNew_msg_txt_NewTitle" runat="server" Text="" ForeColor="Red"></asp:Label></td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lbl_NewImgUrl" runat="server" Text=""></asp:Label></th>
                <td colspan="3">
                    <asp:TextBox ID="txt_pic" runat="server" Width="360px"></asp:TextBox>
                    <a href="#" onclick="showFloat();"><%=GetLanageValueByKey("AddCourseInfo_lbl_l1", PowerCreator.LMS.Language.LanagetItemType.Page) %></a>
                    <asp:Label ID="lbl_UploadFile" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lbl_NewSubhead" runat="server" Text=""></asp:Label>
                </th>
                <td colspan="3">
                    <asp:TextBox ID="txt_NewSubhead" runat="server" Width="360px"></asp:TextBox>
                    <asp:Label ID="lbl_AddNew_msg_txt_NewSubhead" runat="server" Text="" ForeColor="Red"></asp:Label></td>
            </tr>
        </table>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList3">
            <tr>
                <td>
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <th valign="top">
                                <asp:Label ID="lbl_NewContent" runat="server" Text=""></asp:Label>
                            </th>
                            <td colspan="3"  style="padding-bottom:5px;">
                                <FTB:FreeTextBox ID="ftb_NewContent" runat="server" EnableHtmlMode="false" Width="600px"
                                    AllowHtmlMode="false" ToolbarStyleConfiguration="Office2003" Height="300px"
                                    ToolbarLayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu,FontForeColorPicker,FontBackColorsMenu,FontBackColorPicker|Bold,Italic,Underline,Strikethrough,Superscript,Subscript,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImage|Cut,Copy,Paste,Delete;Undo,Redo,Print,Save|SymbolsMenu,StylesMenu,InsertHtmlMenu|InsertRule,InsertDate,InsertTime|InsertTable,EditTable;InsertTableRowAfter,InsertTableRowBefore,DeleteTableRow;InsertTableColumnAfter,InsertTableColumnBefore,DeleteTableColumn|InsertForm,InsertTextBox,InsertTextArea,InsertRadioButton,InsertCheckBox,InsertDropDownList,InsertButton|InsertDiv,EditStyle,InsertImageFromGallery,Preview,SelectAll,WordClean,NetSpell">
                                </FTB:FreeTextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2">
            <tr>
                <td colspan="4" class=" titlefont">
                    <asp:Label ID="lbl_NewAttributeInfo" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lbl_NewNewType" runat="server" Text=""></asp:Label></th>
                <td>
                    <asp:DropDownList ID="ddl_FKNewNewTypeID" runat="server">
                    </asp:DropDownList>
                </td>
                <th>
                    <asp:Label ID="lbl_NewKeyword" runat="server" Text=""></asp:Label></th>
                <td>
                    <asp:TextBox ID="txt_NewKeyword" runat="server" Width="195px"></asp:TextBox></td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lbl_NewAuthor" runat="server" Text=""></asp:Label></th>
                <td>
                    <asp:TextBox ID="txt_NewAuthor" runat="server" Width="100px"></asp:TextBox></td>
                <th>
                    <asp:Label ID="lbl_NewSource" runat="server" Text=""></asp:Label></th>
                <td>
                    <asp:TextBox ID="txt_NewSource" runat="server" Width="195px"></asp:TextBox></td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lbl_NewIsTop" runat="server" Text=""></asp:Label></th>
                <td colspan="3">
                    <asp:CheckBox ID="cb_NewIsTop" runat="server" />
                </td>
            </tr>
            <%--            
            <tr><td colspan="4" class=" titlefont">
                 <asp:Label ID="lbl_NewUploadInfo" runat="server" Text=""></asp:Label></td></tr>
            <tr>
                <th>
                    <asp:Label ID="lbl_NewFileUrl" runat="server" Text=""></asp:Label></th>
                <td colspan="3">
                    <radU:RadProgressManager ID="Radprogressmanager1" Width="100%" runat="server" />
                    <radU:RadProgressArea ID="progressArea1" Width="100%" runat="server">
                    </radU:RadProgressArea>
                    <br />
                    <asp:FileUpload ID="FileUpload1" runat="server" Width="80%"  />
                </td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lbl_NewPictureUrl" runat="server" Text=""></asp:Label></th>
                <td colspan="3">
                    <radU:RadProgressManager ID="Radprogressmanager2" Width="100%" runat="server" />
                    <radU:RadProgressArea ID="progressArea2" Width="100%" runat="server">
                    </radU:RadProgressArea>
                    <br />
                    <asp:FileUpload ID="FileUpload2" runat="server" Width="80%"  />
                    <asp:Label ID="lbl_NewPictureUrl_intro" runat="server" Text=""></asp:Label>
                    </td>
            </tr> 
            
--%>
        </table>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2">
            <tr>
                <td class=" titlefont">
                    <asp:Label ID="lbl_NewTrainClaID" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
               <td>
               <table>
               <tr>
                                <td style="width: 119px" valign="top">
                                    &nbsp;
                                </td>
                                <td style=" padding-left:15px">
                                    
                                    <!--绑定培训班-->
                                    <asp:CheckBoxList ID="chk_FKNewClaIDlist" runat="server" RepeatColumns="6">
                                    </asp:CheckBoxList>
                                    <!--绑定培训班 End-->
                                </td>
                            </tr>

                            </table>
                 
                   <%--<asp:Repeater ID="rptTrainClassIDlist" runat="server">
                        <ItemTemplate>
                            <tr>
                                <th style="width: 119px" valign="top">
                                    <%#Eval("TrainproName")%>
                                </td>
                                <td style=" padding-left:15px">
                                    <asp:Label ID="lbl_ProID" Text='<%#Eval("TrainproID")%>' runat="Server" Visible="False"
                                        BorderColor="#ffffff" BorderStyle="none" BorderWidth="0"></asp:Label>
                                    <!--绑定培训班-->
                                    <asp:CheckBoxList ID="chk_FKNewTrainClaIDlist" runat="server" RepeatColumns="6">
                                    </asp:CheckBoxList>
                                    <!--绑定培训班 End-->
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>--%>
              </td>
            </tr>
           

            <tr>
                <td  class="tree-bottom-bg" style="width: 119px">
                    <asp:Button ID="btnSave" runat="server" Text="" CssClass="inputBotton2" OnClick="btnSave_Click" />&nbsp;&nbsp;
                    <asp:Button ID="btnReset" runat="server" Text="" CssClass="inputBotton2" OnClick="btnReset_Click"
                        CausesValidation="False" /></td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td colspan="3">
                    &nbsp;&nbsp;<asp:Label ID="lbl_msg_Error" runat="server" Text="" ForeColor="red"></asp:Label></td>
            </tr>
        </table>
        <div id="doing" style="filter: alpha(opacity=30); -moz-opacity: 0.3; opacity: 0.3;
            background-color: #000; width: 100%; height: 100%; z-index: 1000; position: absolute;
            left: 0; top: 0; display: none; overflow: hidden;">
        </div>
        <div id="divLogin" style="border: solid 10px #898989; background: #fff; padding: 10px;
            width: 780px; z-index: 1001; position: absolute; display: none; top: 31%; left: 49%;
            margin: -200px 0 0 -400px;">
            <div style="padding: 3px 15px 3px 15px; text-align: left; vertical-align: middle;">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2">
                    <tr>
                        <th>
                            &nbsp;</th>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lbl_msg_description" runat="server" Text=""></asp:Label></td>
                    </tr>
                    <tr>
                        <td>
                            <radu:radprogressmanager id="Radprogressmanager1" width="100%" runat="server" />
                            <radu:radprogressarea id="progressArea1" width="100%" runat="server">
                    </radu:radprogressarea>
                            <br />
                            <asp:FileUpload ID="FileUpload1" runat="server" Width="80%" />
                            <asp:Button ID="btn_Back" runat="server" CssClass="inputBotton2" Text="上传" OnClick="btnUpload_Click" />
                            <br />
                            <asp:Label ID="lbl_FileUpload_msg_FileType" runat="server" Text="" ForeColor="Red"></asp:Label></td>
                    </tr>
                    <tr>
                        <td class="tree-bottom-bg1">
                            <input id="btn_colse" type="button" value='<%=GetLanageValueByKey("btn_Colse", PowerCreator.LMS.Language.LanagetItemType.Page)%>' class="inputBotton2" onclick="ShowNo()" /> </td>
                    </tr>
                </table>
            </div>
            </div>
    </form>
</body>
</html>
